<?php

session_start();
//时区设置
date_default_timezone_set('PRC');
//开启数据库报错机制
define('MYSQL_DEBUG', true);
//主数据库连接信息
$db_config = array(
    'host' => '127.0.0.1',
    'port' => 3306,
    'user' => 'root',
    'pwd' => 'root',
    'dbname' => 'xiaoxia'
);


define('WEBSITE_ROOT_BASE', rtrim(str_replace('\\', '/', dirname(__FILE__)), '\/'));

define('ADMIN_FOLDER', 'www');

//define('DOMAIN_NAME', '.admin.me');
define('DOMAIN_NAME', '.xiaoxia.me');

define('DOMAIN_NAME_WWW', 'http://' . DOMAIN_NAME . '/' . ADMIN_FOLDER);
define('DOMAIN_NAME_ADMIN', 'http://' . ADMIN_FOLDER . DOMAIN_NAME);
//echo DOMAIN_NAME_ADMIN;exit;


//文件上传目录
define('PATH_UPLOAD_ADMIN', WEBSITE_ROOT_BASE);
define('PATH_UPLOAD',  PATH_UPLOAD_ADMIN . '/Home/upload/');
//print_r(PATH_UPLOAD_ADMIN);exit;
//网站上传目录
define('HTTP_UPLOAD', 'http://www.tzpshop.me/Public/Home/upload/');
//总后台控制层的目录
define('PATH_CONTROLLERS', WEBSITE_ROOT_BASE . "/controllers/");
//数据模型目录
define('PATH_MODELS', WEBSITE_ROOT_BASE . '/models/');
//后台域名前缀
define('HTTP_UI', DOMAIN_NAME_ADMIN . '/ui/');
define('PATH_VIEWS', WEBSITE_ROOT_BASE . "/views/");
//本域名下的插件目录

define('HTTP_EXTENDS', DOMAIN_NAME_ADMIN . '/extends/');
//COOKIE 加密KEY
define('COOKIE_KEY', '234dfvxgsdfh0wang');

//YSP目录
define('PATH_YSP', WEBSITE_ROOT_BASE . '/ysp/');

